package er;

import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class NumberEight {
    public static void main(String[] args) {
        List<String> list=new ArrayList<>();
        try(
                BufferedReader bufferedReader=new BufferedReader(new FileReader("data.txt"));
                ) {
            String s = null;
            while ((s=bufferedReader.readLine())!=null){
                list.add(s);
            }
        }catch (IOException e){
            e.printStackTrace();
        }
        Random random=new Random();
        System.out.println("年度最佳语言为："+list.get(random.nextInt(list.size())));
    }
}
